package com.zg.autoform.web.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 新增数据选择器请求
 * @author zg
 */
@Data
@ApiModel(value = "新增数据选择器请求", description = "新增数据选择器请求")
public class SelectAddReq {

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 表单id
     */
    @ApiModelProperty(value = "表单id", required = true)
    @NotNull(message = "表单id不能为空")
    private Long formId;

    /**
     * 权限字段
     */
    @ApiModelProperty(value = "权限字段")
    private String permissionField;

    /**
     * 权限类名
     */
    @ApiModelProperty(value = "权限类名")
    private String className;

    /**
     * 权限方法名
     */
    @ApiModelProperty(value = "权限方法名")
    private String methodName;
}
